//
//  ThroughBusLineTableCell.m
//  didacar
//
//  Created by 度周末网络-王腾 on 15/12/15.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import "ThroughBusLineTableCell.h"
#import "ResponseThroughBusLineEntity.h"
#import "MainInfoTitleFields.h"
#import "UILabel+Yyx.h"
#import "NSString+WPAttributedMarkup.h"
@implementation ThroughBusLineTableCell

- (void)awakeFromNib {
    self.status.layer.cornerRadius = 2;
    self.status.layer.masksToBounds=YES;
}

-(void)showModel:(ResponseThroughBusLineEntity *)regularBusLinewModel{
    
    if (regularBusLinewModel == nil) {
        return;
    }
    
    self.startTime.text = regularBusLinewModel.SendTime;
    
    // 上车点
    [BaseTableViewCell setBusLineStartLocationString:regularBusLinewModel.StartStation startStationType:regularBusLinewModel.StartStationType label:self.startLocation];
    
    
    self.endLocation.text = regularBusLinewModel.EndStation;
    
    if (regularBusLinewModel.IsHaveTicket == 2) {
         self.price.attributedText = [self getPrice:regularBusLinewModel.SalePrice.stringValue leftText:@"有票  " leftSymbol:@"¥"];
    }else{
        self.price.text = @"";
    }
    
    // 车票号
    self.status.text = regularBusLinewModel.TargetId;
    
}


@end
